package com.mrx.xfriendship.controller;


import com.mrx.commons.annotations.XRateLimit;
import com.mrx.xfriendship.model.dto.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Mr.X
 * @since 2023-02-12 20:23
 */
@RestController
public class TestController {

    @XRateLimit
    @GetMapping("/test")
    public Result<String> test() {
        return Result.success();
    }

    @XRateLimit
    @GetMapping("/test2")
    public Result<String> test2() {
        return Result.success();
    }

}
